package com.example.springboot_vue.common;

/**
 * @Author：sgp
 * @Package：com.example.springboot_vue.common
 * @Project：springboot_vue
 * @name：CommonDto
 * @Date：2024/7/15 9:31
 * @Filename：CommonDto
 */
public class CommonDto <T>{

//    业务逻辑上的成功玉失败
    private boolean success = true;
//    返回前端的信息
    private String message;
//    返回泛型，自定类型
    private T content;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "CommonDto{" +
                "success=" + success +
                ", message='" + message + '\'' +
                ", content=" + content +
                '}';
    }
}
